package controleurs;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

import modele.ModeleP;

public class AjoutExitControler extends WindowAdapter{
	private ModeleP myMod;
	private JFrame f;
	public AjoutExitControler(ModeleP p, JFrame f){
		this.myMod=p;
		this.f=f;
	}
	
	public void windowClosing(WindowEvent e){
		myMod.amFinit();
		f.dispose();
	}

}
